package com.zhoushihao.class0813;

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[][] seat = new int[20][5];
//        Map<Integer,Boolean> isOccupied = new HashMap<>();
        for (int i = 0; i < n; i++) {
            int ticket = sc.nextInt();
            for (int j = 0; j < 20; j++) {

            }
        }
    }
}
